﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using hpcpdi.DataAccess.Impl;
using hpcpdi.DataAccess.Interface;
using hpcpdi.Infrastructure;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace hpcpdi.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class RadarController : ControllerBase
    {
        private readonly IRadarRepository _randerRepository;
        public RadarController(IRadarRepository randerRepository) {
            _randerRepository = randerRepository;
        }       
        [HttpGet("/api/radar/RadarCount")]
        public ResultModel<int> RadarCount()
        {
           return ResultModel.Success(_randerRepository.GetRadarCount());
        }
    }
}
